package tech.bmatch.redpack.service;

import tech.bmatch.redpack.model.MyRedPack;
import tech.bmatch.redpack.model.RedPack;
import tech.bmatch.redpack.model.RedPackType;
import tech.bmatch.redpack.param.CreateRedPackParam;

import java.util.List;

public interface RedPackService {
    /**
     * 创建红包
     * @param createRedPackParam
     * @return
     */
    public RedPack create(CreateRedPackParam createRedPackParam);

    /**
     * 查询红包服务
     * @param redPackType
     * @return
     */
    public List<RedPack> query(RedPackType redPackType);

    /**
     * 天降红包服务
     * @param userId
     * @return
     */
    public List<MyRedPack> rainPack(String userId);
}
